<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<%@include file="/view/resource.jsp"%>
		<script type="text/javascript"
			src="${msUrl}/js/ux/payment/payment.js"></script>
	</head>
	<body class="easyui-layout">
		<!-- Search panel start -->
		<div class="ui-search-panel" region="north" style="height: 80px;"
			title="搜索框"
			data-options="striped: true,collapsible:false,iconCls:'icon-search',border:false">
			<form id="searchForm">
				<p class="ui-fields">
					<label class="ui-label">
						客户名称:
					</label>
					<input name="merchantName" class="easyui-box ui-text"
						style="width: 100px;">
					<label>月结时间:</label>
					<input type="text" name="paymentTime" class="easyui-numberbox" data-options="min:0">
					<label>开始日期:</label>  
		            <input name="beginDate" class="easyui-datebox">
		            <label>结束日期:</label>  
		            <input name="endDate" class="easyui-datebox">
		            <label>是否已付款：</label>
		            <select name="payStatus" class="easyui-combobox">
		            	<option></option>
		            	<option value="0">未付款</option>
		            	<option value="1">已付款</option>
		            </select>
				</p>
				<a href="#" id="btn-search" class="easyui-linkbutton"
					iconCls="icon-search">搜索</a>
			</form>
		</div>
		<!--  Search panel end -->

		<!-- DataList  -->
		<div region="center" border="false">
			<table id="data-list"></table>
		</div>
		
		<!-- Edit Form -->
     <div id="edit-win" class="easyui-dialog" title="编辑" data-options="closed:true,iconCls:'icon-save',modal:true" style="width:400px;height:300px;">  
     	<form id="editForm" class="ui-form" method="post">  
     		 <input class="hidden" type="text" name="id">
     		 <input class="hidden" name="deleted">
     		 <div class="ui-edit">
	     	   <div class="ftitle">请款信息</div> 
	     	   <div class="fitem">  
	               <label>日期:</label>  
	               <input id="dd" type="text" name="paymentDate" class="easyui-datebox" data-options="required:true">
	           </div>   
	           <div class="fitem">  
	               <label>指令号:</label>  
	               <input class="easyui-validatebox" type="text" name="cmd" data-options="required:true,validType:'length[1,20]'">
	           </div>
	           <div class="fitem">  
	               <label>品名规格:</label>  
	               <input class="easyui-validatebox" type="text" name="standard" data-options="required:true,validType:'length[1,20]'">
	           </div>  
	           <div class="fitem">  
	               <label>单价:</label>  
	               <input id="price" type="text" name="price" class="easyui-numberbox" data-options="min:0,precision:2">
	           </div>
	           <div class="fitem">  
	               <label>数量:</label>  
	               <input type="text" name="quantity" class="easyui-numberbox" data-options="min:0">
	           </div>  
	           <div class="fitem">  
	               <label>金额（元）:</label>  
	               <input id="amount" type="text" name="amount" class="easyui-numberbox" data-options="min:0,precision:2">
	           </div>
	           <div class="fitem">  
	               <label>备注:</label>  
	               <textarea class="easyui-validatebox" data-options="required:false,length:[0,100]" name="remark"></textarea>
		       </div>  
	         </div>
     	</form>
  	 </div> 
  	 
  	 <!-- View Form -->
     <div id="view-win" class="easyui-dialog" title="查看" data-options="closed:true,iconCls:'icon-search',modal:true" style="width:400px;height:300px;">  
     	<form id="viewForm" class="ui-form" method="post">  
     		 <input class="hidden" type="text" name="id">
     		 <input class="hidden" name="deleted">
     		 <div class="ui-edit">
	     	   <div class="ftitle">请款信息</div> 
	     	   <div class="fitem">  
	               <label>日期:</label>  
	               <input id="dd" type="text" name="paymentDate" class="easyui-datebox" data-options="required:true" disabled="disabled">
	           </div>   
	           <div class="fitem">  
	               <label>指令号:</label>  
	               <input class="easyui-validatebox" type="text" name="cmd" data-options="required:true,validType:'length[1,20]'" disabled="disabled">
	           </div>
	           <div class="fitem">  
	               <label>品名规格:</label>  
	               <input class="easyui-validatebox" type="text" name="standard" data-options="required:true,validType:'length[1,20]'" disabled="disabled">
	           </div>  
	           <div class="fitem">  
	               <label>单价:</label>  
	               <input id="price" type="text" name="price" class="easyui-numberbox" data-options="min:0,precision:2" disabled="disabled">
	           </div>
	           <div class="fitem">  
	               <label>数量:</label>  
	               <input type="text" name="quantity" class="easyui-numberbox" data-options="min:0" disabled="disabled">
	           </div>  
	           <div class="fitem">  
	               <label>金额（元）:</label>  
	               <input id="amount" type="text" name="amount" class="easyui-numberbox" data-options="min:0,precision:2" disabled="disabled">
	           </div>
	           <div class="fitem">  
	               <label>备注:</label>  
	               <textarea class="easyui-validatebox" data-options="required:false,length:[0,100]" name="remark" disabled="disabled"></textarea>
		       </div>  
	         </div>
     	</form>
  	 </div> 
  	 <!-- 导入excel -->
  	 <div id="import-excel-win" class="easyui-dialog" buttons="#importExcelbtn" title="导入Excel" data-options="closed:true,iconCls:'icon-save',modal:true" style="width:400px;height:165px;">
     	<form id="excelForm" class="ui-form" method="post" enctype=”multipart/form-data” >  
     		 <input class="hidden" name="id">
     		 <div class="ui-edit">
	     	   <div class="ftitle">Excel</div>    
	           <div class="fitem">  
	               <label>Excel文件:</label>  
	               <input type="file" name="payment">
	           </div>  
	         </div>
     	</form>
     	 <div id="editExcelbtn" class="dialog-button">  
            <a href="javascript:void(0)" class="easyui-linkbutton" id="btn-excel-submit">导入</a>  
            <a href="javascript:void(0)" class="easyui-linkbutton" id="btn-excel-close">关闭</a>  
        </div>
  	 </div> 
	</body>
</html>
